<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
</head>
<body>
	{% with messages = get_flashed_messages() %}
	{% if messages %}
	{% for message in messages %}
	<h2>{{ message }}</h2>
	{% endfor %}
	{% endif %}
	{% endwith %}
<p><a href="{{url_for('question.ask')}}">Ask</a></p>
<p><a href="{{url_for('question.search')}}">Search</a></p>
<p><a href="{{url_for('tag.index')}}">Tags</a></p>
<ul>
{% for q in qs %}
	<li>
		<a href="{{url_for('question.detail',qid=q['_id'])}}"><b>{{q['title']}}</b></a>({{q['answers']|default([])|count}})
		<br />
		<br /><br />
	</li>
{% endfor %}
<script>
$(document).ready(function() {
    
});

</script>
</ul>
</body>
</html>